import logging,HTMLTestRunner_cn

class Tools():
    def log(self):
        log = logging.basicConfig(filename='jiuxian.log',
                                  filemode='a+',
                                  format='%(filename)s-%(message)s-%(levelname)s-%(asctime)s-%(lineno)d',
                                  level=logging.INFO)
        return log

    def report(self):
        report = HTMLTestRunner_cn.HTMLTestRunner(open('./jiuxian.html','wb'),
                                                  title="酒仙测试",
                                                  description="酒仙aaa测试")
        return report
